package downloader

import (
	"io/ioutil"
	"net/http"
)

func mustGet(url string) (s string) {
	resp, _ := http.Get(url)
	if resp == nil {
		return
	}

	defer resp.Body.Close()

	data, _ := ioutil.ReadAll(resp.Body)

	if data != nil {
		return string(data)
	}
	return
}
